package cn.cdqf.service.impl;

import cn.cdqf.bean.TStudent;
import cn.cdqf.mapper.StudentMapper;
import cn.cdqf.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentMapper studentMapper;

    @Override
    public List<TStudent> queryStudent(String name,long classId) {
        return studentMapper.queryStudent(name,classId);
    }

    @Override
    public int deleteStudent(int parseInt) {
        return studentMapper.deleteStudent(parseInt);
    }

    @Override
    public TStudent queryStudentById(int id) {
        return studentMapper.queryStudentById(id);
    }

    @Override
    public int updateStudent(int id, TStudent tStudent) {
        return studentMapper.updateStudent(id,tStudent);
    }
}
